//
//  DSPTempController.swift
//  SWweibo
//
//  Created by 杜守鹏 on 15/12/27.
//  Copyright © 2015年 杜守鹏. All rights reserved.
//

import UIKit

class DSPTempController: UIViewController {

    
    override func viewDidLoad() {
        super.viewDidLoad()
       view.backgroundColor = UIColor.whiteColor()
navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: "didPush")
        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)级"
    }

    func didPush(){
        let vc = DSPTempController()
        navigationController?.pushViewController(vc, animated: true)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
